#ifndef MYCALLBACK_H
#define MYCALLBACK_H

#include <sbs2callback.h>
#include <sbs2datahandler.h>

class MyCallback : public Sbs2Callback
{
    Q_OBJECT
public:
    explicit MyCallback(QObject *parent = 0);
    void getData(Sbs2Packet *packet);
    QVector<QVector<QList<int> > > values;
    QVector<QVector<double> > valuesSpectro;

private:
    //QVector<QList<QVariant> > values;

    int samplesToCollect;
    int samples;

    int valuesIndex;


signals:
    //void valuesSignal(QVariant c1, QVariant c2, QVariant c3, QVariant c4, QVariant c5, QVariant c6, QVariant c7, QVariant c8, QVariant c9, QVariant c10, QVariant c11, QVariant c12, QVariant c13, QVariant c14);
    //void valueSignal(QVector<QList<int> > vs);
    void valueSignal(int index);
    void gyroSignal(int gyroX, int gyroY);
    void updateSpectro();

public slots:
	void spectrogramUpdatedSlot();
};

#endif // MYCALLBACK_H
